package models

// ActivityPolicyTemplate 活动政策模版
type ActivityPolicyTemplate struct {
	Model
	AgentId      int     `json:"agent_id" gorm:"comment:'代理商id'"`
	ActivityId   int     `json:"activity_id" gorm:"comment:'活动政策id'"`
	Type         int     `json:"type" gorm:"comment:'费率类型 0=D0 1=D1'"`
	Wechat       float64 `json:"wechat" gorm:"type:decimal(10,6);comment:'微信费率'"`
	Alipay       float64 `json:"alipay" gorm:"type:decimal(10,6);comment:'支付宝费率'"`
	YunPayMin    float64 `json:"yun_pay_min" gorm:"type:decimal(10,6);comment:'云闪付费率<=1000元'"`
	YunPayMax    float64 `json:"yun_pay_max" gorm:"type:decimal(10,6);comment:'云闪付费率>1000元'"`
	DebitCard    float64 `json:"debit_card" gorm:"type:decimal(10,6);comment:'刷卡储蓄卡费率'"`
	DebitCardMax float64 `json:"debit_card_max" gorm:"type:decimal(10,6);comment:'刷卡储蓄卡封顶手续费'"`
	CreditCard   float64 `json:"credit_card" gorm:"type:decimal(10,6);comment:'刷卡信用卡费率'"`
}
